
<?php
$this->pageTitle = $classCourse;
$this->menu = array(
    array('label' => Yii::t('app', $manage), 'url' => array($url)),
);
?>

<h3 style=" float: left;"><?php echo $classCourse ?></h3> <h3 style="float:right;"><?php echo 'Rate: Postive('.$classCourseRatePostitve.') And Negative('.$classCourseRateNigative.') ' ?></h3>
<script type="text/javascript">
    function ChangeStatus(id, status) {
        $.ajax({
            url: "<?php echo $statuschangeurl; ?>",
            type: "post",
            data: "id=" + id + "&status=" + status,
            dataType: "html",
            success: function(msg) {
                $('#reviews-grid').yiiGridView.update('reviews-grid');
            }
        });

    }

</script>
<div style="clear: both;"></div>

<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'reviews-grid',
    'dataProvider' => $dataProvider,  
    'columns' => array(
        // 'id',
        'reviews_text',
        'create_time',
        array(
            'name' => 'status',
            'type' => 'raw',
            'value' => 'changeStatusIngridView($data)',
            'filter' => array('0' => Yii::t('app', 'Inactive'), '1' => Yii::t('app', 'Active')),
        ),
        
    ),
));
?>
